from io import BytesIO
from PIL import Image
import pytesseract



im = Image.open('1.png')
print(pytesseract.image_to_string(im))